#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# @Time    : 2022/6/3 1:07
# @Author  : Samge


# 需要置空的的关键词
from itkz.resources.utils import str_util

IGNORE_KEYS = [
    '【IT客栈 www.itkz.net】',
    '【IT客栈www.itkz.net】',
    '【www.ikz.net】',
    '【 www.ikz.net】',
    '【 www.ikz.ne】',
    'www.ikz.ne',
    'www.itkz.net',
    'itkz.net',
    'itkz',
    'IT客栈',
    '客栈',
    '【 】',
    '【】',
]


def do_trim(value: str) -> str:
    for key in IGNORE_KEYS:
        value = value.replace(key, '')
    return str_util.sql_value_filter(value)


if __name__ == '__main__':
    v: str = 'python是可见的恢复上课flutter'
    print(do_trim(v))

